package dao.impl;

import dao.UserDao;
import entity.User;
import util.BaseDB;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

public class UserDaoImpl extends BaseDB implements UserDao {
    @Override
    public List<User> queryAllUser() {
        Connection conn=null;
        Statement st=null;
        ResultSet rs=null;
        List<User> users=null;
        try{
            conn=getConn();
            st=conn.createStatement();
            users=new ArrayList<User>();
            String sql="select* from user";
            rs=st.executeQuery(sql);
            while(rs.next()){

            }
        }catch(Exception e){
            e.printStackTrace();
        }

        return null;
    }
}
